how to resize rotate and translate an image using opencv